package cn.usian.user.service.impl;

import cn.usian.user.mapper.UserMapper;
import cn.usian.user.pojo.User;
import cn.usian.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @TODO:
 * @Author:baimu
 * @Date:2024 06 04 15 15
 **/

@Service
public class UserServiceImpl implements UserService {

   final
   UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

@Override
    public User getUserById(Integer id) {
        return userMapper.getUserById(id);
    }
}
